<?php
$con = mysqli_connect('10.2.30.4','root','root','curd');
if(!$con){
    echo json_encode(['msg'=>'no']);
    die();
}
mysqli_set_charset($con,'utf8');
$sql = "select * from boke";
$res = mysqli_query($con,$sql);
$arr=[];
    while($row=mysqli_fetch_assoc($res)){
        $arr[]=$row;
}
echo json_encode(['msg'=>$arr]);
?>